home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap25 / dun25_1.txt next >
Encoding:
Text File  |  1997-12-18  |  762 b   |  19 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2.  
  3. <HEAD>
  4.  
  5. <TITLE>Canvas Mode Demo</TITLE>
  6.  
  7. <SCRIPT LANGUAGE="JavaScript1.2">
  8.  
  9. function cmWindowOpen() {
  10.  
  11.  netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
  12.  
  13.  cmWindow=window.open("cmWindow1.html","Canvas",
  14.  
  15. cc] "titlebar=no,innerWidth=200,innerHeight=100,screenX=10,screenY=10");
  16.  
  17. }
  18.  
  19. </SCRIPT>
  20.  
  21. </HEAD>
  22.  
  23. <BODY>
  24.  
  25. <P>Welcome to your first canvas mode demo!
  26.  
  27. <P><A HREF="javascript:cmWindowOpen()">Click here to open the window</A>
  28.  
  29. <P><A HREF="cmWindow2.html" TARGET="Canvas">Click here 
  30.  
  31. cc]to put file cmWindow2.html inside the window</A>
  32.  
  33. <P><A HREF="cmWindow1.html" TARGET="Canvas">Click here 
  34.  
  35. cc]to put file cmWindow1.html back inside the window</A>
  36.  
  37.